<?php
/**
 * @version		$Id: default.php 22338 2011-11-04 17:24:53Z github_bot $
 * @package		Joomla.Site
 * @subpackage	mod_articles_latest
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
$first = $list[0];?> 

			<div id="news">

					<?php if ($module->showtitle) { ?>
						<h4><?php echo $module->title; ?></h4>
					<?php }; ?>
				
				<div class="data">
					<!--<h2><a href="<?php //echo $first->link; ?>"><?php //echo $first->title; ?></a></h2>-->
					<p class="date"><?php echo date("d/m/Y", strtotime($first->created)); ?></p>
					<p >																					
					<?php						
															$words = explode(" ", strip_tags($first->introtext));
															if(count($words) > 25)
															{
																for($i=0;$i<=25;$i++)
																{
																	echo $words[$i]." ";
																}
																echo "...";
															}
															else
															{
																echo strip_tags($first->introtext);
															}
															?></p>
					<p class="more" style="float:right"><a href="<?php echo $first->link; ?>">Readmore >></a></p>
				</div>
			</div><!--news-->


